<?php
/* @var $this OrderDetailAdminController */
/* @var $model Orderdetail */

$this->breadcrumbs=array(
	'Orderdetails'=>array('index'),
	$model->orderdetail_id,
);

$this->menu=array(
	array('label'=>'Tạo mới', 'url'=>array('create')),
	array('label'=>'Sửa', 'url'=>array('update', 'id'=>$model->orderdetail_id)),
	//array('label'=>'Xoá', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->orderdetail_id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Quản trị', 'url'=>array('admin')),
);
?>

<h1>Chi tiết hoá đơn (Mã: <?php echo $model->orderdetail_id; ?>)</h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'orderdetail_id',
        array(
            'name'=>'product_id',
            'type'=>'html',
            'value'=>CHtml::link(Product::model()->getName($model->product_id),array('Browser/Detail','id'=>$model->product_id)),
        ),
        array(
            'name'=>'product_price',
            'type'=>'raw',
            'value'=>number_format($model->product_price,0,'',','),
        ),
		'product_quantity',
        array(
            'name'=>'order_id',
            'type'=>'html',
            'value'=>CHtml::link($model->order_id,array('OrderAdmin/View','id'=>$model->order_id)),
        ),
	),
)); ?>
